package com.example.demo.service;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestClient;


@Service
public class RestClientService {
    @Resource
    private RestClient restClient;

    public String sayHello(String hello) {
        String res = restClient.get().uri("say1/{content}", hello).retrieve().body(String.class);
        return "say:" + res;
    }
}
